<?php
class VmViewtypeModel extends ModelIdName
{
    protected $resourceId = 'SystemResource';
	protected static $instance;

	public static function GetInstance()
	{
        return self::$instance ? self::$instance : self::$instance = new VmViewtypeModel();
	}

    protected function LoadRows()
    {
        $this->AddRow(VmConfig::GetInstance()->VIEWTYPE_DEFAULT, 'default');
        $this->AddRow(VmConfig::GetInstance()->VIEWTYPE_TREE, 'tree');
        $this->AddRow(VmConfig::GetInstance()->VIEWTYPE_FORM, 'form');
    }
}
?>
